import request from '@/utils/request';

// 查询过滤规则列表
export function list(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/resourceFilterRule',
		method: 'post',
		data: data,
	});
}

// 新增过滤规则
export function add(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/resourceFilterRule/save',
		method: 'post',
		data: data,
	});
}

// 修改过滤规则
export function edit(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/resourceFilterRule',
		method: 'put',
		data: data,
	});
}

// 删除过滤规则
export function remove(ids: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/resourceFilterRule/delete/' + ids,
		method: 'delete',
	});
}
